﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using RuleCode.Table;

namespace map.member
{
    public partial class configshop_articleinfo : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                cbuser u = cbuser.getcuruser();
                string id = u.cbuserid.ToString();
                cbshopcss sc = cbshopcss.findorcreate(id);
                string css = sc.getstylestring();
                Literalcss.Text = css;


                bind1();
            }
        }


        /// <summary>
        /// 绑定基础分类
        /// </summary>
        private void bind1()
        {
 
            string id = "0";
            
            if (this.Request.Params["kid"] != null)
            {
                id = this.Request.Params["kid"].ToString();
            }
            if (id == "0")
            {
                if (this.Request.Params["value"] != null)
                {
                    id = this.Request.Params["value"].ToString();
                }
            }
            cblist l = cblist.Find("cblistid='"+id+"'");
            Label1.Text = l.cbtitle.ToString();
            Label2.Text = l.jccreatedate.ToString();
            Literal1.Text = l.cbcontent.ToString();

        }
    }
}
